package com.zkthink.ceres.applet.member.controller;

import com.zkthink.base.R;
import com.zkthink.ceres.applet.common.domin.PageDate;
import com.zkthink.ceres.applet.order.service.AppletServerOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by kellen on 2020/5/4.
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/member")
@Api(value = "member", tags = "会员服务")
@AllArgsConstructor
public class AppLetMemberController {

  @Resource
  private AppletServerOrderService appletServerOrderService;

  /**
   * 我的服务记录
   */
  @ApiOperation(value = "我的服务记录", notes = "我的服务记录")
  @PostMapping("/findMyServer")
  public R findMyServer(@RequestBody PageDate pageDate) {
    return appletServerOrderService.findMyServer(pageDate);
  }

}
